package cate.common.table.res.furniturecall.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.furniturecall.row.FurnitureCallCheatRow;

/** 家具抽奖作弊 */
public class FurnitureCallCheatSheet extends ESheet<FurnitureCallCheatRow> {

    @Override
    public String getSheetName() {
        return "盲盒开启作弊";
    }

    public FurnitureCallCheatRow getRow(int callmode, int cnt) {
        for (FurnitureCallCheatRow row : this.getList()) {
            if (callmode == row.callmode && row.timesStart <= cnt && cnt <= row.timesEnd) {
                return row;
            }
        }
        return null;
    }
}
